package models

type LeaveInfoReq struct {
	RequestID        string `json:"request_id" binding:"required"` //请假人的ID
	RequestName      string `json:"request_name"`                  //请假人的名字
	RequestCLassID   string `json:"request_class_id"`              //班级
	RequestCLassName string `json:"request_class_name"`            //班级名称
	BeginTime        string `json:"start_time" binding:"required"` //预计开始时间
	EndTime          string `json:"end_time" binding:"required"`   //预计结束时间
	Msg              string `json:"msg" binding:"required"`        //描述
	TeacherId        string `json:"teacher_id" binding:"required"` //老师Id
	TeacherName      string `json:"teacher_name"`                  //老师名称
	TeacherConfirm   bool   `json:"teacher_confirm"`               //老师是确认
	ReturnConfirm    bool   `json:"return_confirm"`                //返回确认
	ReturnConfirmID  string `json:"return_confirm_id"`             //返回确认ID
	Action           string `json:"action"`                        //状态
}
type LeaveUpdateReq struct {
	LeaveInfoReq
}
type SearchAllToStudentReq struct {
	PageInfo
	WxOpenID  string `json:"wx_open_id" binding:"required"`
	NoConfirm int    `json:"no_confirm"`
}
type DeleteLeaveReq struct {
	LeaveId  int    `json:"leave_id"`
	WxOpenID string `json:"wx_open_id"`
}
type UpdateStatusReq struct {
	LeaveId    int    `json:"leave_id"`
	ReturnId   int    `json:"return_id"`
	ReturnName string `json:"return_name"`
}

//---------
